<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
<title>我的优惠券</title>
<link rel="stylesheet" type="text/css" href="css/lib/swiper.min.css"/>
<link rel="stylesheet" type="text/css" href="css/lib/doumee.css"/>
<link rel="stylesheet" type="text/css" href="css/public.css"/>
<link rel="stylesheet" type="text/css" href="css/lib/dialog.css"/>
<link rel="stylesheet" type="text/css" href="css/weal.css"/>
<script src="js/lib/jquery-2.1.0.js" type="text/javascript" charset="utf-8"></script>
<script src="js/lib/swiper.min.js" type="text/javascript" charset="utf-8"></script>
<script src="js/lib/vue-2.5.17.js" type="text/javascript" charset="utf-8"></script>
<script src="js/lib/doumee.js" type="text/javascript" charset="utf-8"></script>
<script src="js/data.js" type="text/javascript" charset="utf-8"></script>
<script src="js/lib/dialog.js" type="text/javascript" charset="utf-8"></script>
<script src="js/personal_weal.js" type="text/javascript" charset="utf-8"></script>
</head>

<body>

<header class="header bottom-line tc h5 main-line flex-row" id="wealTab">
	<a class="flex-full on">未使用</a>
	<a class="flex-full">已使用</a>
	<a class="flex-full">已失效</a>
</header>

<div class="swiper-container Main" id="allWeal">
	<div class="swiper-wrapper">
		<div class="swiper-slide content">
			
			<div class="children" id="weal">
				
				<!--优惠券福利-->
				<div class="wealMod homeMod" style="padding-top: 14px;">
					
					<div class="weal-wrap">
						
						<ul class="weal-box" v-for="(item,index) in wealData" :type="item.statu">
							<li class="main-info flex-row">
								<div class="val">
									<span class="unit">￥</span>{{item.val}}
								</div>
								<div class="flex-full info flex-row">
									<dl class="flex-full">
										<dt>{{item.type}}</dt>
										<dd>{{item.start}} ~ {{item.end}}</dd>
									</dl>
									<template v-if="item.statu == 0"><a class="btn btn-1" href="mall.html">去使用</a></template>
									<template v-else-if='item.statu == 1'><a class="btn">已使用</a></template>
									<template v-else><a class="btn">已失效</a></template>
								</div>
							</li>
							<li class="ex-info flex-row" @click="controlRuler($event)">
								<div class="flex-full ruler animate dm-wrap">{{item.rule}}</div>
								<a class="btn animate"></a>
							</li>
						</ul>
						
					</div>
					
				</div>	
				<!--优惠券福利 end-->
				
			</div>
			
		</div>
	</div>
</div>

<script type="text/javascript">

$("#wealTab").on('click','a',function(){
	$(this).addClass('on').siblings().removeClass('on');
});

</script>

</body>
</html>
